/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;

/**
 * 商品运营明细Entity
 * @author huanghaiming
 * @version 2017-07-06
 */
public class OperationProductDetail extends DataEntity<OperationProductDetail> {
	
	private static final long serialVersionUID = 1L;
	private String productId;		// 商品Id
	private String opeproId;		// 专题Id
	private String productName;		// 商品名称
	private String productCode;		// 货号
	private String classifyName;		// 分类名称
	private String photo;		// 图片
	private Integer sort;		// 排序
	
	private String opeProtitle;//精品标题
	
	public OperationProductDetail() {
		super();
	}

	public OperationProductDetail(String id){
		super(id);
	}

	@Length(min=0, max=64, message="商品Id长度必须介于 0 和 64 之间")
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	
	@Length(min=0, max=64, message="专题Id长度必须介于 0 和 64 之间")
	public String getOpeproId() {
		return opeproId;
	}

	public void setOpeproId(String opeproId) {
		this.opeproId = opeproId;
	}
	
	@Length(min=0, max=64, message="商品名称长度必须介于 0 和 64 之间")
	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}
	
	@Length(min=0, max=64, message="货号长度必须介于 0 和 64 之间")
	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	
	@Length(min=0, max=64, message="分类名称长度必须介于 0 和 64 之间")
	public String getClassifyName() {
		return classifyName;
	}

	public void setClassifyName(String classifyName) {
		this.classifyName = classifyName;
	}
	
	@Length(min=0, max=255, message="图片长度必须介于 0 和 255 之间")
	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getOpeProtitle() {
		return opeProtitle;
	}

	public void setOpeProtitle(String opeProtitle) {
		this.opeProtitle = opeProtitle;
	}
	
	
}